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.