The factional part is used to give faction-specific variations in certain buildings, it's a useful capability. As for the error: the code seems ok to me, have you added the proper UI cards yet?