Extract EBML into separate module.