A brewery has been refused permission to use metal shipping containers to expand its operations at a historic pub in Pontefract town centre.