Refactored menu filtering in a single class FileMenuFilter