Wales is changing some of its coastal risk management rules to allow more pro-active work to be put into planning future flood defences.