Remove obsolute calls to get_profile().

Change-Id: I2966c48dfc8f9c211efb0ca623ac00322aa98845