[ci skip] remove unused spec helper method