Extract profile helpers to spec support