SPARK-4447. Remove layers of abstraction in YARN code no longer needed after dropping yarn-alpha

should keep return type