A new modular building at Devonport Dockyard will replace one no longer fit for purpose as a result of asbestos.