Extract anonymous module into #own

To follow the pattern established in Trait.