refactor ogmios-core