How to use package extensions

Thanks for your reply. It looks like I need using StatsBase in both locations (see the updated commit).

I was hoping that I could use load StatsBase (or other package) only with the extension. This would be helpful in cases where the other dependency is large. Is there a work around?