Better place for registering a codec