mpls: Refactor how the mpls module is built