Convert switches in profile to components