remove deprecated classes from template