Change getConstants() to static method.