Engineering and Reverse-Engineering Morality