Parse and transform the module elements declared in profiles