Just had this done on a Toyota Avalon. On an Avalon it's a sealed bearing and an integral part of the hub. You have to buy the whole hub assembly. Should take about 30 minutes to swap out.
RepairPal Certified shops can diagnose and repair your 2007 Subaru Impreza. They provide transparent pricing with a minimum 12-month or 12,000-mile warranty on repairs and services.