diff --git a/app/models/ability/program_manager.rb b/app/models/ability/program_manager.rb
index 72600c99371781784163b95693c8d13e0e61a98b..b3da7db0f115706e56a151f5601d0ce4454a1a12 100644
--- a/app/models/ability/program_manager.rb
+++ b/app/models/ability/program_manager.rb
@@ -37,13 +37,12 @@ class Ability::ProgramManager < Ability
     end
   end
 
+  def managed_programs_ids
+    @managed_programs_ids ||= @user.programs_to_manage.pluck(:id)
+  end
+
   def managed_program_localization_ids
-    @managed_program_localization_ids ||= begin
-      managed_program_ids = @user.programs_to_manage.pluck(:id)
-      Education::Program::Localization
-        .where(about_id: managed_program_ids)
-        .pluck(:id)
-    end
+    @managed_program_localization_ids ||= Education::Program::Localization.where(about_id: managed_program_ids).pluck(:id)
   end
 
   def managed_person_localization_ids