remove Function and ConstantFunction; use guava instead