Refactoring. Removed copy-paste json fetch