Move profile related stuff to ProfileRegistry and make ProfileService depend on it