FunctionWidget class refactoring checkpoint.