Clean up delegateByFile().