Moved constants to their own modules and cleaned up the extension to have a defined entry point.