NATO agreed earlier this year to turn over peacekeeping to the EU , citing what it called the improved security situation in Bosnia .