Split kill lib functions to separate files