improve logic used to filter/remove unwanted methods in api docs json