[#43898261] Extract logic from WorkfilesController to Workfile