Gets as far as flattening templates into the entity specifications.