Make a few helper functions static. NFC.