Refactoring successful drop code into separate function onSuccessfulDrop()