Exclude deprecated forwarding modules from compilation