An application to turn the site of a former Batley pub into a diagnostics garage and flats has been refused planning permission by Kirklees Council.