refactor according to the plan
move binary package out of storage package
refactor document <-> elastic morphisms