Refactoring kinect