The original bug: facility_id must be obtained from kwargs.