Refactor on obj_drop.m.
Extract sigmoid and weight-reshaping as functions.