If similar code (as in the example) is duplicated in different components but with slight differences in the name of what I pass in the function parameters
What are the options to take the code somewhere separately and then introduce that into my components with custom parameters? (individually for each component)
Should I do this through a plugin? If so, then how can I implement the individually necessary parameters on the components + how to connect the plugin only on these components and nowhere else?
