Add helper functions to fetch limit and orderby from params.