The code to generate modulemd should not import functionality from Koschei. Shared functionality can be extracted to a separate library, if needed.