Removed unused task extension methods.