[TASK] Move code from PageLayoutView to proper class