CommandProcessor: mark some functions as static