Splitting the layouts into inheritable  templates.