Removes all non-relevant prototypes