Refactoring evalLimitClause