LPS-40572 Fix applying workflow for root folder
LPS-25714 Do not let the layoutRevisionId parameter override the default behaviour for finding the page revision for the other layouts. It's only there for the selected layout
LPS-25714 encapsulate code (no logic changes)
LPS-25714 SF