Remove ```$app``` dependency