This logic was previously located in limit_order_create_evaluator, but other code may need it in the future, so it should be made available at the database level.