[FEATURE] Writing the 'phase' and 'precedingPhases' fields in a new way

This feature will supersede the old-fashion phases definition in the next drop.