I am working on a template that reduces a base creature's HD, but keeps the total number of feats. Those feats over the normal total allowed by the new HD are changed to bonus feats. Is there an easy way to do this, or should I just change the max number of feats allowed?