Refactoring: moved _mkfile fund from FilePanel to where it's used