Moved query result to separated class.