Little refactor on RealmQuery