function trackEvents(feature, interaction) {
    const events = [];
    feature.on('change', function (event) {
      events.push('change');
    });
    interaction.on('modifystart', function (event) {
      events.push(event);
    });
    interaction.on('modifyend', function (event) {
      events.push(event);
    });
    return events;
  }
Tracks events triggered by the interaction as well as feature
modifications. Helper function to
@param {Feature} feature Modified feature.
@param {Modify} interaction The interaction.
@return {Array<ModifyEvent|string>} events