Build fly-out-menu snippet and correctly add to default code.