Pull out file menu creation into function so that it can be overriden in parent class.