Move common functions to include/music.h.