Refactor pg titles