Reuse `maybe_visit` method

This commit simply removes duplicated code by reusing the [existing `maybe_visit` method](https://github.com/rails/arel/blob/master/lib/arel/visitors/to_sql.rb#L786).