Split Mongoid::StatementBuilder's build_statement_for_type into multiple smaller methods.