Remove unused functions in spec helper.