Remove redundant create_pane_with_file function