remove ogmios-core + refactor the code