It’s easy to be focused when you are by yourself and motivated – there’s no one there to distract you (you only have to worry about your smartphone, but since you’re motivated, you probably turned it off.)
But being focused in an environment where the distractions are unrelenting and constant – this requires a very specific mindset. Like so many things in life, it is a question of perspective. And perspective is one of the few things in life we can control.
Personally, I find there are two elements necessary to make this work. One is a willingness to find out how hard you can push yourself before you hit your limit. It is usually much farther than you think.
The other is a tenacious desire to accomplish whatever it is you are trying to get done.
By any means necessary.