Move reflection-based methods to their own class.