Some simplifications on modules - TODO: ospf.c.