Refactor #4365: Refactor SpriteBatchNode, Menu, MenuItem constructor with init function