Refactor return result for movies in 1 function