Move layout macros to a different template file for reusability.