Structure: Removed unused statements, marked some methods as abstract, optimized methods.
Validator: Added argument $options to method check(). Can be used to pass message in case of error.
DatabaseUpdateQuery: Optimized method signature of getQuery().
GroutFactory: Added property module which holds reference to factory related module.
DoctrineTools: Added use statement.
Optimizations, added abstract keywords, removed unnecessary code.