Move compilation from Function to CustomNodeController