Refactoring layout partials