Refactor SubRibWriter Spec