Making bases that protect your resources is essential to saving for upgrades. Other than base design layout, there are other things you can do to protect resources.

Make a farming base and decorate it. This means the TH is outside the base and has enough decorations to assure anyone that no traps are near the TH so even low guys can get trophies off of you.

Make sure you are not in a league that is currently being farmed heaps. Note that once you find a league where you are not getting leveled often, you may have to change as people change what league they farm in.