On the run up to its 300th anniversary, one of York’s most historic buildings is set to close ahead of renovation work.