Remove dependency to CPP: Moving parser functions to a dedicated file