[FOLD] Move predicates to a separate file
[FOLD] Rename to Peer::ptr, remove Peer::ref