Easily extract constants from classes