Improve bugmeta to work based on Class instead of just type