Extract migration dumper into own object.

This is to first step. Other will follow.