Split logic into multiple files, one per class.