If you are easily distracted, working in an accountability area (as in no YouTube) helps get you focused - at least for me. If you work as a team, I don't think you can replace being there very easily - whether that means your apartment or getting an office.