Remove references to get_profile.

Function is obsolete and broken.

Change-Id: I6b0c4cceae986f78239a0fa333ff9f02fec46df0