Work somewhere quiet and do not go home until the job is done.
In my later undergraduate days, I realized that I needed a place to study that was separate from my home. I was lucky enough to work in a university research lab that gave me some space to study. If I hadn’t had that, I would have found a quiet library nook to work in on a regular basis. One of my biggest advantages in finding a place to study on campus was that I could study until my day’s work was done.