Revert "LPS-46210"
LPS-46210 Removing unused vars
LPS-46278 There is no need to check for type pending_pages