Make return type more specific
Refactor duplicate code