Berry quits film to prepare for custody fight