profile-sync-daemon: refactor module