ship build: modularize directive decls