refactor: Remove ProfileManager
remaining code
#7809
Merged
ProfileManager
remaining code
#7809