Clean up function definitions.