Removing closures from config