How do I change out substrate?

How often does one have to replace substrate in a colony and how do I do it without killing pods?