Minimize repetition by using this configuration in your themes
Using Twig to create a more concise solution