Well, one would be to add a parameter to `get_wp_config_code()` that, when passed, returns the code without the lines that contain the constants.