Split the main and lua function FXML files.