Move code block to appropriate place.