Added WithQbs and WithMigration function.

A better way to use Qbs instance.