Changed the repository filter options to those related to the tickets owned by the user.

Also, minor refactoring to avoid code duplication.
1 file changed