Splitting up common functions into new Eosimias library.