Make getTotalItems deprecated