Refactoring to make fragment and page easier to distinguish.