Refactor programTypeName to work on backend