ToolForm: Refactoring, generalize conditional parameters