Refactored app singleton into 1 line