A better way to enable annotation classes.