Refactor required gems section