Code reduce in App class.