Refactor profiles and filter profiles list by owner