Separate codec operations from the compatibility module