Remove deprecated function and add remove prefix also for centos