Refactor: libcrmcommon: Functionize adding allowed values
Signed-off-by: Reid Wahl <nrwahl@protonmail.com>