Extract mjolnir window management to module.