Deprecate %profile magic

Trying to resolve #4580.