refactoring the chains variable so that the types considered by the factorial CRF are directly dependent on it and it only