LPS-34170 Refactor FinalizeManager to remove the dependency