Remove old profile code