Move SDP related functions to a separate file.