Classification of Constraints Using the Chain-by-Chain Method