Break StubChain into two classes