Remove unnecessary gradient prefixes