Extract writing of manifests into tested mixin