Extract presenter code from view