extract reusable module from original mesos-ps