Presumably to be able to use different "db" in different contexts? (e.g. tests). Anyway, I'd lean towards passing the db connection as an explicit parameter (e.g. by using component instead of mount or whatever).