https://thecode.media/cleanup-method/