How to avoid hard coding of this Kafka topic in a pipeline?

We are creating a Kafka pipeline as below. But our Kafka topics are different for development, QA and production environment.

Please guide us how to avoid hard coding of this Kafka topic in a pipeline.

create or replace pipeline pipeline_processemp
as load data kafka ‘b-2.-msk.nf.c2.kafka.us-west-2.amazonaws.com:9092/processemp’
batch_interval 500
max_partitions_per_batch 10
resource pool inventory_resource_pool
into table processemp format json;

I’d recommend having a client application that contains the CREATE OR REPLACE PIPELINE statement and have it plug in the Kafka topic as a parameter.

Currently it’s not possible to do CREATE [OR REPLACE] PIPELINE with in a stored procedure (with our without dynamic SQL), so that is not an option.

Could you give some examples to achieve this ,please?

Suggest some best practices.