Use helper fn to get start block in paste handler.

Neater and deals with the edge cases.