Remove unnecessary deffered in syncronous code