Cleans up functors.