Switch to unchecked exceptions where applicable.
Add FunctionUtil.