Move code for creating activation callable into Network class.