The main purpose of this refactor is reduce a custom state from different pages and unify them under common access patterns