rpearce: Rename legacy_mode -> single_instance as it would be useful in
latest. Remove un-used application variable