ref: extract classes from pcs.c

Signed-off-by: Sergei Ianovich <ynvich@gmail.com>