Moved doctrine metadata listener to more proper place