Refactored moving data transforms into service and added logic to prevent data loading for hidden pages.