Hi @BartoszWachocki-4076,
Welcome to Microsoft Q&A Platform. Thanks for posting the query.
The pipeline code can be seen as a JSON that allows editing and copying the contents. This JSON has all the column mappings chosen and the entire contents or partial contents from this JSON can be copied into a new pipeline which retains the mappings. Below GIF shows complete mapping copied into a new pipeline.
Hope this helps! Please let us know for further queries and we will be glad to assist.