Shrinked size of menu code with helper method