Split ActiveRecord::StatementBuilder's build_statement_for_type method into multiple smaller methods for easier oversight and refactoring.
Split Mongoid::StatementBuilder's build_statement_for_type into multiple smaller methods.
Move shared code up to AbstractModel::StatementBuilder
Fix spelling mistake in spec.
Generalise the build_statement_for_integer_decimal_or_float to be identical for ActiveRecord and Mongoid.
Move shared build_statement_for_integer_decimal_or_float up to AbstractModel.