Kind of a hack, but you could create multiple copies of the ship class. Version A is anti-shipping, Version B is colony bombardment, etc. Then give each version a different missile loadout. The nice thing about this is that a single shipyard geared for Version A can build B, C, D, etc. Bad thing is you've got Version A, B, C, D, etc.