create FuncMap and Initializer

Take function storage and lookup out of Factory and put in FuncMap. Create Initializer.