Commonwealth no need to scream here
As I said previously, It would be based on the actual value (credits spent + minerals used) of a planet structure. Even if you build Zillions of cheap structures only to scrap them, you wouldn't get much in return.
The more these structures worth, the more you get in return. Simple as that!
Doesn't have to be much, but at least you see some of your initial investments coming home.