Refactoring base and custom page titles