Don't use PHP short open tags.
Modify Drupal core switch to switch between Drupal 7 and 8.
Remove core choice from form.