Code optimization done for filter services by category