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.