Cleanup and method level enhancement detection