Change populate() in ActiveEntity so the target is the last argument so you can just pass a struct as the first argument