A real-life Professor Snape once taught in this Welsh university building, which students of course nicknamed “Hogwarts.”