Move reading flags from app.json to SparkFlags