Refactor Assignment factory

Refactor callback on Assignment factory. Relax foreign key validations
on CardSubmissions and CardSubmissionsLog.