simplify Subroutine.get_spies
remove some unecessary code