Split bending_fit into two files.