Only the upgrade is affected by those two values, so your idea is doable. However, some reform units have their own weapon type, and their weapons can't be upgraded.