Move menu stuff to pluggable file.