[Refactor] Move safe to src.