Refactor subject assignment into serializable attributes module