Separate event library from ice-mercury