Code cleanup ofRunSpecification