This is going to be very fragile to namespace changes. Take the last component instead.