Moves HandleAsync to an extension method.