Automating Code Adaptation for MLOps -- A Benchmarking Study on LLMs