Refactored Compiler and ORMSelect classes.