Remove codecs and add Chain helper class