Refactor the project catagory filter