minor: remove unused code in spec