Removed unused code from TaskHelpers and TaskHelpersExtensions.