Refactor out empty chain definitions.