Refactor base_title