Updated Flag and FlagInterface due to https://www.drupal.org/node/2352673.